package com.suncreate.zhtz.iot.mapper;

import com.suncreate.zhtz.iot.model.AdcModel;
import com.suncreate.zhtz.iot.model.C2000ValueModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface C2000ValueMapper {
    /**
     e  * 查询数据
     *
     * @param startTime  起始时间
     * @param endTime  结束时间
     * @return
     */
    List<C2000ValueModel> queryDataByTimeAndCh(@Param("startTime") String startTime, @Param("endTime") String endTime,@Param("chNum") String chNum, @Param("calculate") String calculate, @Param("inter") String inter, @Param("sort") Integer sort , @Param("minValue") Float minValue,@Param("maxValue") Float maxValue, @Param("limit") Integer limit);
    List<C2000ValueModel> queryTopDataByTimeAndCh(@Param("startTime") String startTime,@Param("endTime") String endTime,@Param("chNum") String chNum,@Param("topCount") Integer topCount,@Param("sort") Integer sort);

}